<?php
require 'config/paths.php';
require 'config/sysconfig.php';
require 'libs/Bootstrap.php';
require 'libs/Controller.php';
require 'libs/Model.php';
require 'libs/View.php';
require 'libs/encryption.php';
require 'functions/sql.php';
require 'functions/functions.php';
require 'public/lang.php';
require 'functions/date.php';
require 'functions/menu.php';
require 'config/config.php';
$to = MAIL;
//$to = "jatin.jain16@gmail.com";
$email = $_REQUEST['email'];  //Recipient's E-mail
$phone=$_REQUEST['phone'];
$mssg=$_REQUEST['comment'];
$firstname=$_REQUEST['name'];
$subject .= 'Mail From '.$firstname; // Subject of your email


$headers = "From: ".$_REQUEST['email']." \r\n";
$headers .= "Reply-To: ".$_REQUEST['email']."\r\n";

//$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html\r\n"; 



$message.='<html><head></head><body><h2><b><u> Mail sent from contact form</b></u></h2><br/>';
$message .='Name: '.$firstname."<br/><br/>";
$message .= 'Phone: '.$phone."<br/><br/>";
$message .= 'Message: '.$mssg.'<br/><br/><br/><br/>';
$message .= 'Kind Regards <br/><br/>';
$message .= '-- <br/><br/>';
$message .= $firstname;
if (@mail($to, $subject, $message, $headers))
{
	// Transfer the value 'sent' to ajax function for showing success message.
	echo 'sent';
}
else
{
	// Transfer the value 'failed' to ajax function for showing error message.
	echo 'failed';
}
?>